#ifndef LINECHART_H
#define LINECHART_H

#include <QWidget>
#include <QPixmap>

class LineChartSettings
{
public:
    LineChartSettings();

    qreal minX;
    qreal maxX;
    int numXTicks;
    qreal minY;
    qreal maxY;
    int numYTicks;
};

class LineChart : public QWidget
{
    Q_OBJECT
public:
    explicit LineChart(QWidget *parent = 0);

protected:
    void paintEvent(QPaintEvent *e);
    
signals:
    
public slots:

private:
    void drawCurve();
    QVector<qreal> m_curvePoints;
    QPixmap m_curvePixmap;
    int m_curveStartIdx;
    int m_curveEndIdx;
    qreal minY;
    qreal maxY;

};

#endif // LINECHART_H
